/**
 * create by cyw 2020/5/31
 * 通用头部导航栏
 */
import "./NavHeader.scss";
import React from "react";

class NavHeader extends React.Component {
  constructor(props) {
    super(props);
  }

  goBack() {
    window.history.back();
  }

  render() {
    return (
      <div className="nav">
        <div className="back-icon" onClick={() => this.goBack()}></div>
        <h4 className="title">{this.props.title}</h4>
      </div>
    );
  }
}
export default NavHeader;
